package com.fuhailiu.opengl.renders;

import android.content.Context;

import com.fuhailiu.opengl.utils.LogUtil;
import com.fuhailiu.opengl.view.GLView;
import com.fuhailiu.opengl.view.GLViewGroup;
import com.fuhailiu.opengl.widget.GLScissor;

public class RenderScissor extends AbsRender {

	private final String TAG = getClass().getSimpleName();

	public RenderScissor(Context context) {
		super(context);
	}

	@Override
	protected GLViewGroup makeWorld(Context context) {
		LogUtil.LogD(TAG, "makeWorld   <---");

		GLViewGroup layout = new GLViewGroup(context);

		GLView glScissor = new GLScissor(context, mSurfaceWidth, mSurfaceHeight);
		layout.addView(glScissor);

		LogUtil.LogD(TAG, "makeWorld   --->");

		return layout;
	}

}
